<section class="content" style="padding: 10px">
    <div class="row">
        <div class="col-12">
            <div class="card card-default">
                <div class="card-header">
                    <h3 class="card-title">医生问诊排班</h3>
                </div>
            </div>
        </div>
    </div>
</section>

<style>
    td,th{
        text-align: center;
    }

</style>


<div class="content">
    <div class="card-body table-responsive" style="padding-top: 0px">
<!--        <a class="btn   btn-outline-primary btn-table-tool btn-dialog" href="{url bed add_edit}" data-area="40%,30%" title="新增类别">新增</a>-->
    </div>
    <div class="card-body table-responsive" style="padding-top: 0px">
        <table class="table table-bordered">
            <thead>
            <tr class="table-primary">
                <th scope="col">#</th>
                <th scope="col">周一</th>
                <th scope="col">周二</th>
                <th scope="col">周三</th>
                <th scope="col">周四</th>
                <th scope="col">周五</th>
                <th scope="col">周六</th>
                <th scope="col">周日</th>
            </tr>
            </thead>
            <tbody>
            {foreach $data as $k=>$v}
            <tr>
                <th scope="row">
                    {if $v['today']==0}
                    上午
                    {else}
                    下午
                    {/if}
                </th>
                <td>
                    {foreach $v['mon']['doctor_name'] as $m=>$n}
                    <div>{$n}</div>
                    {/foreach}
                </td>
                <td>
                    {foreach $v['tue']['doctor_name'] as $m=>$n}
                    <div>{$n}</div>
                    {/foreach}
                </td>
                <td>
                    {foreach $v['wed']['doctor_name'] as $m=>$n}
                    <div>{$n}</div>
                    {/foreach}
                </td>
                <td>
                    {foreach $v['thu']['doctor_name'] as $m=>$n}
                    <div>{$n}</div>
                    {/foreach}
                </td>
                <td>
                    {foreach $v['fri']['doctor_name'] as $m=>$n}
                    <div>{$n}</div>
                    {/foreach}
                </td>
                <td>
                    {foreach $v['sat']['doctor_name'] as $m=>$n}
                    <div>{$n}</div>
                    {/foreach}
                </td>
                <td>
                    {foreach $v['sun']['doctor_name'] as $m=>$n}
                    <div>{$n}</div>
                    {/foreach}
                </td>

            </tr>
            {/foreach}
            </tbody>
        </table>
    </div>

</div>
